const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: {
        index: ["./src/js/index.js", "./src/scss/index.scss"],
        mation: ["./src/js/mation.js", "./src/scss/mation.scss"],
        contact: ["./src/js/contact.js", "./src/scss/contact.scss"],
        friendlylink: ["./src/js/friendlylink.js", "./src/scss/friendlylink.scss"],
        group: ["./src/js/group.js", "./src/scss/group.scss"],
        housetype: ["./src/js/housetype.js", "./src/scss/housetype.scss"],
        newslist: ["./src/js/newslist.js", "./src/scss/newslist.scss"],
        projectint: ["./src/js/projectint.js", "./src/scss/projectint.scss"],
        votingpage: ["./src/js/votingpage.js", "./src/scss/votingpage.scss"],
    },
    plugins: [
        new HtmlWebpackPlugin({
            template: "./src/html/index.html",
            filename: "index.html",
            chunks: ["index"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/mation.html",
            filename: "mation.html",
            chunks: ["mation"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/contact.html",
            filename: "contact.html",
            chunks: ["contact"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/friendlylink.html",
            filename: "friendlylink.html",
            chunks: ["friendlylink"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/group.html",
            filename: "group.html",
            chunks: ["group"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/housetype.html",
            filename: "housetype.html",
            chunks: ["housetype"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/newslist.html",
            filename: "newslist.html",
            chunks: ["newslist"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/projectint.html",
            filename: "projectint.html",
            chunks: ["projectint"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/votingpage.html",
            filename: "votingpage.html",
            chunks: ["votingpage"]
        })
    ]
}
